import request from '/@/utils/request';

export function ClientUser() {
	return {
		search: (data: object) => {
			return request({
				url: 'management/client/user/search',
				method: 'post',
				data,
			});
		},
		view: (id: string) => {
			return request({
				url: `management/client/user/view/${id}`,
				method: 'get',
			});
		},

		search_order: (data: object) => {
			return request({
				url: 'management/client/user/search/order',
				method: 'post',
				data,
			});
		},
		search_coupon: (data: object) => {
			return request({
				url: 'management/client/user/search/coupon',
				method: 'post',
				data,
			});
		},
		search_score: (data: object) => {
			return request({
				url: 'management/client/user/search/score',
				method: 'post',
				data,
			});
		},

		search_share: (data: object) => {
			return request({
				url: 'management/client/user/search/share',
				method: 'post',
				data,
			});
		},
	};
}
